import { Component, OnInit, ViewEncapsulation } from '@angular/core';
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
import { PathParam } from "../../config/pathParam";

@Component({
  selector: 'app-gallery',
  templateUrl: './gallery.component.html',
  styleUrls: ['./gallery.component.css'],
  encapsulation:ViewEncapsulation.None
})
export class GalleryComponent implements OnInit {

  minitor_video:string = PathParam.video_url+"minitor";
  duolundipan_video:string = PathParam.video_url+"duolundipan";
  minitor_video_url:SafeResourceUrl;
  duolundipan_video_url:SafeResourceUrl;

  display1 = false;
  display2 = false;
  //display3 = false;
  constructor(public domSanitizer:DomSanitizer){ }

  ngOnInit(): void {
    this.minitor_video_url =this.domSanitizer.bypassSecurityTrustResourceUrl(this.minitor_video);
    this.duolundipan_video_url =this.domSanitizer.bypassSecurityTrustResourceUrl(this.duolundipan_video);
  }

  show1(){
    this.display1 = true;
  }

  show2(){
    this.display2 = true;
  }

  onHide1(){
    console.log("hide")
  }
  onHide2(){
    console.log("hide")
  }

}
